document.querySelector('div').addEventListener('mouseover', function (e) {
    e.target.style.color = '#897';
});
document.querySelector('div').addEventListener('mouseleave', function (e) {
    e.target.style.color = '#400';
});